﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model IEnumerable<PessMvc.Models.CountyAdminModel> 

@{
    ViewBag.Title = "CountyAdmins";
}
<h2>区县管理员</h2> 
<div id="operate">
@Html.ActionLink("新建管理员","CountyAdminRegister","Account")&#8195;@Html.ActionLink("返回","SystemSettings","Home")

</div>

<div id="userList">
@{
    var grid = new WebGrid(Model);
}
@grid.GetHtml(columns:
    grid.Columns(
    grid.Column("UserName", header: "区县管理员"),
        grid.Column("EMail", header: "电子邮件"),
        grid.Column("CountyName", header: "区县"),
        grid.Column(format: (item) => Html.ActionLink("编辑", "EditCountyAdmin", new { UserName=item.UserName}))
    )
)
</div>

<script language="javascript">
    document.getElementsByTagName("table")[0].className = "oddTable";
</script>
